package Guia6.Ejercicio1;

import EjerciciosEnClase.EjercicioExceptions.DividirPorCeroException;

public class Calculadora {
	
	public double sumar(double a, double b){
		return (a+b);
	}
	
	public double restar(double a, double b){
		return (a-b);
	}
	
	public double multiplicar(double a, double b){
		return (a*b);
	}
	
	public double dividir(double a, double b) throws DividirPorCeroException{
		if(b == 0) throw new DividirPorCeroException();
		
		return (a/b);
	}
	
}
